package com.manbu.live.id.generate.provider.rpc;

import com.manbu.live.id.generate.interfaces.IdGenerateRpc;
import com.manbu.live.id.generate.provider.service.IdGenerateService;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author hanWang
 * @Title:
 * @Package
 * @Description:
 * @date 2024/1/2412:39 PM
 */
@DubboService
public class IdGenerateRpcImpl implements IdGenerateRpc {
    @Resource
    private IdGenerateService idGenerateService;

    @Override
    public Long geSeqId(Integer id) {
        return idGenerateService.geSeqId(id);
    }

    @Override
    public Long geUnSeqId(Integer id) {
        return idGenerateService.geUnSeqId(id);
    }
}
